#include <iostream>
#include <fstream>

#include "Parser.h"

int main(int argc, char* argv[])
{
    /* check if the input and output are setted */
    if (argc <= 2)
    {
        std::cout << "mgxs <xs-text> <mc-format>" << std::endl;
        return 0;
    }


    Parser p;
    p.open(argv[1]);

    /* must use before Parser::parse() */
    p.setFMT(MCNP);
    // p.setMOCPfile(argv[3]);

    /* set the output file */
    p.open(argv[2], "write");

    /* parse the input file */
    p.parse();

    /* write file to setted format */
    p.write();

    /* write MOCP material file */
    // p.writeMOCP();

    return 0;
}
